package com.hangwei.aicabinet.presenter;

import com.hangwei.aicabinet.view.BaseView;

import rx.Subscription;

/**
 * Created by Dell on 2018/9/8.
 */

public class BasePresenter<V extends BaseView> {
    protected V mView;
   public BasePresenter(V v){
       mView = v;
   }

    protected Subscription mSubscription;

    public void detach() {
        if (mSubscription != null && mSubscription.isUnsubscribed())
            mSubscription.unsubscribe();
    }
}
